import request from '@/utils/request'


const api_name = `/shop`

export default{
    pageList(query){
        return request({
            url:`${api_name}`,
            method:'post',
            data:query
        })
    },
    //店铺入驻
    settlement(shopRegister){
        return request({
            url:`${api_name}/settlement`,
            method:'post',
            data:shopRegister
        })
    },
    //删除文件
    delete(path){
        return request({
            url:`/txCos/delete?path=${path}`,
            method:'get'
        })
    },
    update(shop){
        return request({
            url:`${api_name}`,
            method:'put',
            data:shop
        })
    },
    //人工手动审核
    aduit(shop){
        return request({
            url:`${api_name}/audit`,
            method:'post',
            data:shop
        })
    }
}